﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharePoint2007Migration.Domain
{
    public class WebPartDefinitionCollection : Dictionary<Guid, WebPartDefintion>
    {
        public void Add(WebPartDefintion webpartDefinition)
        {
            try
            {
                base.Add(webpartDefinition.WebPartId, webpartDefinition);
            }
            catch (ArgumentException)
            {
                // do nothing!
            }
           
        }

    }
}
